﻿using UnityEngine;
using System.Collections;

public class canjiao : MonoBehaviour {
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    void OnCollisionEnter(Collision co)
    {
        Debug.Log("i`m dying");
        gameObject.GetComponent<Renderer>().material.color = Color.red;

        gameObject.GetComponent<AudioSource>().Play();
    }
}
